package com.mall.implementation;

import java.util.ArrayList;
import java.util.Date;

import com.mall.core.Item;
import com.mall.util.StringWrapper;

public class ReceiptImpl implements com.mall.core.Receipt, Comparable<ReceiptImpl> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ArrayList<StringWrapper> getName() {
		return name;
	}
	public void setName(StringWrapper name) {
		this.name.add(name);
	}

	public ArrayList<Item> getItempurchased() {
		return itempurchased;
	}
	public void setItempurchased(ArrayList<Item> itempurchased) {
		this.itempurchased = itempurchased;
	}
	public double getTotalprice() {
		return totalprice;
	}
	public void setTotalprice(double totalprice) {
		this.totalprice = totalprice;
	}
	public int getTotalnumofitemsbought() {
		return totalnumofitemsbought;
	}
	public void setTotalnumofitemsbought(int totalnumofitemsbought) {
		this.totalnumofitemsbought = totalnumofitemsbought;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	private int id =0;
	
	private ArrayList<StringWrapper> name;
	private ArrayList<Item> itempurchased;
	private double totalprice;
	private int totalnumofitemsbought;

	
	@Override
	public void printDocument() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public int compareTo(ReceiptImpl o) {
		// TODO Auto-generated method stub
		return 0;
	}

}
